import request from '@/utils/request'

//获取字典列表
export function getDictionaryData(data) {
	return request({
		url: '/pc/system/dictionary/page_get_dictionary_type_list',
		method: 'post',
		formData:data
	})
}

//新增字典类型
export function newAddDictionary(data) {
	return request({
		url: '/pc/system/dictionary/insert',
		method: 'post',
		json:data
	})
}

//根据类型查询
export function searchDictionaryType(data){
	return request({
		url:"/pc/system/dictionary/page_find_by_dictionary_type",
		method:'post',
		formData:data
	})
}

//编辑字典类型
export function updateDictionary(data) {
	return request({
		url: '/pc/system/dictionary/update',
		method: 'post',
		json:data
	})
}

//删除字典类型
export function deleteDictionary(data) {
	return request({
		url: '/pc/system/dictionary/delete_by_id',
		method: 'post',
		formData:data
	})
}

//查询成果类型列表数据
export function queryResultTemplate(data) {
	return request({
		url: '/pc/system/dictionary/get_achievement_enum',
		method: 'post',
		formData:data
	})
}